<!DOCTYPE html>
<html lang='en'>

<head>
    <meta charset='UTF-8'>
    <meta http-equiv='X-UA-Compatible' content='IE=edge'>
    <meta name='viewport' content='width=device-width, initial-scale=1.0'>
    <title>Document</title>
    <script src='../../vue.js'></script>
</head>

<body>
    <div id='app'>
        <!-- 基础属性 -->
        <h1 study="js">{{count+1}}</h1>
        <!-- v-bind修改属性 -->
        <h1 v-bind:study="newstyle">{{count+2}}</h1>
        <!-- v-bind可以简写为： -->
        <h1 :study="ishot? 're':'leng' ">{{count+3}}</h1>
        <img v-bind:src="'http://www.baidu.com/' + src" alt="">
        <input type="text" :value="msg">

    </div>
    <script>
        /* 设置为 false 以阻止 vue 在启动时生成生产提示 */
        Vue.config.productionTip = false;
        const vm = new Vue({
            el: '#app',
            data() {
                return {
                    msg:1010,
                    count:11,
                    newstyle:"stetet",
                    ishot:true,
                    src: "01.jpg",
                }
            }
        })
    </script>
</body>
</html>